<form action="{:request()->url()}" autocomplete="off" class="layui-form layui-card" data-auto="true" method="post">
    <div class="layui-card-body padding-left-40">
        <script>
            layui.form.render();
        </script>

        <label class="layui-form-item relative block">
            <span class="color-green font-w7">角色名称</span>
            <span class="color-desc margin-left-5">name</span>
            <input class="layui-input" name="name" placeholder="{$vo.name|default='角色名称'}" value="{$vo.name|default=''}"/>
            <span class="help-block">请填写角色名称，建议字符不要太长，一般24个汉字</span>
        </label>
        <label class="layui-form-item relative block">
            <span class="color-green font-w7">描述</span>
            <span class="color-desc margin-left-5">desc</span>
            <input class="layui-input" name="desc" placeholder="{$vo.rule|default='描述'}" value="{$vo.desc|default=''}"/>
            <span class="help-block">请填写描述，建议字符不要太长，一般24个汉字</span>
        </label>
    </div>

    <div class="hr-line-dashed"></div>
    {notempty name='vo.id'}<input name='id' type='hidden' value='{$vo.id}'>{/notempty}

    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" data-close data-confirm="确定要取消编辑吗？" type='button'>取消编辑</button>
    </div>
</form>